package com.yuwubao.hz_International.entities.vo

import com.fasterxml.jackson.annotation.JsonFormat
import java.util.*

class ConsumptionVo {

    var type: String = ""
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    var createTime: Date = Date()
    var money = ""
}

fun getType(type: Int): String {
    return when (type) {
        1 -> "线下充值"
        2 -> "兑换积分"
        3 -> "转福利金"
        4 -> "转消费金"
        5 -> "利息"
        6 -> "粉丝充值"
        7 -> "邀请好友"
        8 -> "系统自动转结"
        9 -> "线下支付"
        10 -> "线下收款"
        11 -> "线上支付"
        12 -> "线上收款"
        13 -> "线上充值"
        else -> ""
    }
}

/**

1,线下充值;
2,兑换积分;
3,转福利金;
4,转消费金;
5,利息;
6,粉丝充值;
7,邀请好友;
8,系统自动结转;
9,线下支付;
10,线下收款;
11,线上支付;
12,线上收款;
13,线上充值
 */